Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make overbright settings fully configurable (default no clamping version) #1364

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

slipher
Copy link
Member

@slipher slipher commented Oct 16, 2024

Same as #1350 but overbright clamping is NOT disabled by default. So this version would go ahead and change how all Unvanquished and most Tremulous maps are displayed

Change cvars so that all overbright settings can easily be tested.
The current overbright-related cvars have a wonky asymmetric design that can make it impossible to test a setting without editing the map. Fix that. With this commit we can use r_overbrightDefaultExponent (0-3) and r_overbrightDefaultClamp (on/off) to control the default settings when the map doesn't say anything, and one more cvar r_overbrightIgnoreMapSettings to make those cvar values override the worldspawn values even if present. In the worldspawn entity mapOverBrightBits can stay as is, but forceLegacyOverBrightClamping drops the "force" (since it is no longer a one-way switch) and renames to just overbrightClamping.

Fixes DaemonEngine#1289.
Copy link
Member

@illwieckz illwieckz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice that r_mapOverBrightBits was renamed and that name dated back to quake3, but we also renamed r_fastsky and r_dynamiclight so I don't see any reason to care about that if we have not cared about the others (and I'm the culprit for the others)!

LGTM.

@illwieckz illwieckz merged commit b86dcf6 into DaemonEngine:for-0.55.0/sync Oct 17, 2024
9 checks passed
@slipher slipher deleted the overbright-cvars2 branch October 18, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants